package com.eightbears.beboy.entity;

import com.eightbears.beboy.base.BaseDataEntity;
import com.eightbears.beboy.base.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Bao on 2017/7/27.
 */

public class ShopCommentEntity extends BaseEntity implements Serializable {

    private CommonData data;

    public CommonData getData() {
        return data;
    }

    public void setData(CommonData data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ShopCommentEntity{" +
                "data=" + data +
                '}';
    }

    public static class CommonData extends BaseDataEntity{

        private List<ShopComment> list;

        public List<ShopComment> getList() {
            return list;
        }

        public void setList(List<ShopComment> list) {
            this.list = list;
        }

        @Override
        public String toString() {
            return "CommonData{" +
                    "list=" + list +
                    '}';
        }
    }

    public static class ShopComment {

        private String id;
        private String shop_id;
        private String user_id;
        private int score;
        private String comment;
        private String status;
        private String created_at;
        private String commented_at;
        private CommentUser user;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public CommentUser getUser() {
            return user;
        }

        public void setUser(CommentUser user) {
            this.user = user;
        }

        public String getCommented_at() {
            return commented_at;
        }

        public void setCommented_at(String commented_at) {
            this.commented_at = commented_at;
        }

        @Override
        public String toString() {
            return "ShopComment{" +
                    "id='" + id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", user_id='" + user_id + '\'' +
                    ", score=" + score +
                    ", comment='" + comment + '\'' +
                    ", status='" + status + '\'' +
                    ", created_at='" + created_at + '\'' +
                    ", user=" + user +
                    '}';
        }
    }

    public static class CommentUser {

        private String user_id;
        private String cover;
        private String nickname;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        @Override
        public String toString() {
            return "CommentUser{" +
                    "user_id='" + user_id + '\'' +
                    ", cover='" + cover + '\'' +
                    ", nickname='" + nickname + '\'' +
                    '}';
        }
    }
}
